package com.pingan.haofang.searchcloud.monitor.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author EX-LIUXIANWEN001
 * @date 2018/10/18
 * @since 1.0.0
 */
@Entity
@Table(name = "t_dashboard_resource_info")
public class DashboardResourceInfo {

    /**
     * 自增ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    private Long id;

    /**
     * 集群名称
     */
    @Column(name = "cluster_name")
    private  String clusterName;

    /**
     * 节点ip
     */
    @Column(name = "node_ip")
    private  String nodeIp;

    /**
     * 节点总数
     */
    @Column(name = "node_num")
    private Integer nodeNum;

    /**
     * 节点状态，有效0，无效1
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 节点硬盘大小
     */
    @Column(name = "disk_size")
    private Long diskSize;

    /**
     * 节点硬盘已使用大小
     */
    @Column(name = "disk_used")
    private Long diskUsed;

    /**
     * 采集时间
     */
    @Column(name = "acquisition_time")
    private  Date acquisitionTime;

    /**
     * 创建时间
     */
    @Column(name = "create_time", insertable = false, updatable = false)
    private Date createTime;

    public Date getAcquisitionTime() {
        return acquisitionTime;
    }

    public void setAcquisitionTime(Date acquisitionTime) {
        this.acquisitionTime = acquisitionTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getNodeIp() {
        return nodeIp;
    }

    public void setNodeIp(String nodeIp) {
        this.nodeIp = nodeIp;
    }

    public Integer getNodeNum() {
        return nodeNum;
    }

    public void setNodeNum(Integer nodeNum) {
        this.nodeNum = nodeNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getDiskSize() {
        return diskSize;
    }

    public void setDiskSize(Long diskSize) {
        this.diskSize = diskSize;
    }

    public Long getDiskUsed() {
        return diskUsed;
    }

    public void setDiskUsed(Long diskUsed) {
        this.diskUsed = diskUsed;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
